package org.raftkv.raft.core.storage.exceptions;


import org.raftkv.raft.core.storage.Storage;
import org.raftkv.raft.core.storage.impl.MemoryStorage;

/**
 * 一个 CompactedException 由 Storage#entries 或 Storage#compact 在请求的索引不可用时抛出，因为它早于最后一个快照。
 *
 * @author wzy
 * @see Storage#entries
 * @see MemoryStorage#compact
 */
public class CompactedException extends RuntimeException {

    public CompactedException() {
        super("requested index is unavailable due to compaction");
    }

}
